<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@include file="common/common.jsp"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base href="<%=basePath%>">

    <title>My JSP 'login.jsp' starting page </title>

    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" href="${ss }/css/matrix-login.css" />
    <link href="${ss }/font-awesome/css/font-awesome.css" rel="stylesheet" />
    <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
</head>

<body onload="login()">
<img style="position:absolute;left:0px;top:0px;width:100%;height:100%;z-Index:-1; border:0px solid blue" src="${ss }/img/zzdy.jpg" />

<form id="loginform" class="form-vertical" action="${ss }/spring_security_check" method="post">

    <input type="hidden" name="${_csrf.parameterName}" value="${_csrf.token}" />
    <input type="hidden" name="username" placeholder="Username" value="<c:out value="${machineID.userName}"/>"/>
    <input type="hidden" name="password" placeholder="Password" value="admin"/>

</form>
<div style="margin: 200px 240px;">
    <font style="color:#3c3c3c;font-size:46px;">
        正在绑定设备，请等候...
    </font>
</div>
<script type="text/javascript" src="${ss }/js/jquery-1.11.2.min.js"></script>
<script type="text/javascript">
    function login(){
        window.location.href="${ss }/jsp/login.jsp";
    }
</script>
</body>
</html>

